<?php
include dirname(__FILE__).'/functions.php';
?>
<html>
<head>
	<?php include dirname(dirname(dirname(__FILE__))).'/include/common-header.php'; ?>
	<?php
		if (isset($_GET['id'])) {
			$id = $_GET['id'];
		}
	?>		
	<link rel="stylesheet" type="text/css" href="../../admin/css/style.css">		
</head>
<body class="container">
	<div class="row" style="margin-top:100px">
	
	<div>

			<form >
			 	

				    <label for="title" class="control-label">标题</label>
				   
				      <label readonly style="width:200px"  type="text" name="title"  id="title" >
				      	<?php if(isset($id)){
				      		echo getTitleById($id);	
				      	} ?>
				      </label>
			
				    <br>
				
		      		<div class="main-content">
		      		<p>
		        	<?php
		        		if(isset($id)){
		        		echo getContentById($id);
		        	}
		        	?>
		       	 </p>
		        	</div>
	
	

	    	</form>
		</div>
	</div>
</body>
</html>